<?php 
class Webdziner_Featuredproduct_Model_Grid extends Mage_Core_Model_Abstract
{
	public function _construct()
	{
		parent::_construct();
		$this->_init('featuredproduct/grid');
	}
	
	public function isFeaturedProduct($productId)
	{
		$featuredCollection=Mage::getModel('featuredproduct/grid')->getCollection();
		foreach($featuredCollection as $featured)
		{
			if($featured->getProductId() == $productId)
				return true;
		}

		return false;
	}
}